.root {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: -1;
    opacity: 0;
    pointer-events: none;
}

.overlay {
    width: 100%;
    height: 100%;
    background: var(--overlay-colog);
    display: flex;
    align-items: center;
    justify-content: center;
}

.title {
    font: var(--h3);
    font-weight: bold;
    padding: 12px 0;
}

.content {
    border-radius: var(--border-radius);
    background: var(--color-white);
    transition: 0.3s transform;
    transform: scale(0.5);
    max-width: 60%;
    padding: 8px 12px;
    color: var(--color-black);
}

.opened {
    pointer-events: auto;
    opacity: 1;
    z-index: var(--modal-z-index);

    .content {
        transform: scale(1);
    }
}

.isClosing {
    .content {
        transform: scale(0.2);
    }
}
